from shapes import *
from boat import *
 
world = TurtleWorld()
rob = Turtle()
rob.color = "blue"
rob.delay = 0.000000000000000000000000000000000000000000000000000000000000000000000000001

def showMenu():
    print "1: Square"
    print "2: Boat"
    print "3: Star"
    print "4: Move"
    print "5: Arc"
    print "6: Line"
    print "7: Stickman"
    print "8: Exit"
    answer = raw_input("Please Choose a Number: ")
    return answer
    
def drawShape(t, option):
    if option == "1":
        size = raw_input("How Large? ")
        size = float(size)
        square(t, size)
    elif option == "2":
        size = raw_input("How Large? ")
        size = float(size)
        boat(t, size)
    elif option == "3":
        points = input("How Many Points? ")
        size = raw_input("How Large? ")
        size = float(size)
        rotate = input("How Much Rotation? ")
        star(t, points, size, rotate)
    elif option == "4":
        x = input("How Far Forward or Back? ")
        y = input("How Far Up or Down? ")
        move(t, x, y)
    elif option == "5":
        radius = input("How Big of a Radius? ")
        angle = input("What Angle? ")
        rotate = input("How much Rotation? ")
        arc(t, radius, angle, rotate)
    elif option == "6":
        x = input("How Far Forward or Back? ")
        y = input("How Far Up or Down? ")
        line(t, x, y)
    elif option == "7":
        size = raw_input("How Large? ")
        size = float(size)
        StickMan(t, size)
    else:
        print "I Don't Know That One!"
        
def run():
    while True:
        opt = showMenu()
        if opt == "8":
            wait_for_user()
            exit()
        drawShape(rob, opt)
run()